projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4673f0a
)
Combine duplicate `if` arm blocks.
author
Corey Farwell
<coreyf@rwell.org>
Sat, 6 Aug 2016 02:44:17 +0000
(22:44 -0400)
committer
Corey Farwell
<coreyf@rwell.org>
Sat, 6 Aug 2016 02:44:17 +0000
(22:44 -0400)
src/cargo/util/shell_escape.rs
patch
|
blob
|
history
diff --git
a/src/cargo/util/shell_escape.rs
b/src/cargo/util/shell_escape.rs
index 2acbd00ea004b4ca8ddba723ccebcd08069f4d99..2220017064d8cb73892dac932c60330c5c16a615 100644
(file)
--- a/
src/cargo/util/shell_escape.rs
+++ b/
src/cargo/util/shell_escape.rs
@@
-12,9
+12,7
@@
use std::borrow::Cow;
use std::env;
pub fn escape(s: Cow<str>) -> Cow<str> {
- if cfg!(unix) {
- unix::escape(s)
- } else if env::var("MSYSTEM").is_ok() {
+ if cfg!(unix) || env::var("MSYSTEM").is_ok() {
unix::escape(s)
} else {
windows::escape(s)